import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const db = uniCloud.database();
export default new Vuex.Store({
	state: {
		userInfo: {},
		msgNum: 0,
		cookie: '',
		download: {}
	},
	mutations: {
		setUserInfo(state, res) {
			state.userInfo = res
		},
		setMsgNum(state, res) {
			state.msgNum = res
		},
		setCookie(state, res) {
			state.cookie = res
		},
		setDownload(state, res) {
			state.download = res
		}
	},
	actions: {

	},
	getters: {

	}
});